.z-player-switch {
  width: 32px;
  height: 20px;
  text-align: center;
  font-size: 0;
  vertical-align: middle;
  opacity: .8;

  input {
    max-height: 0;
    max-width: 0;
    display: none;
  }

  input+label {
    display: inline-block;
    position: relative;
    box-shadow: #fff 0 0 0 0 inset;
    border: 1px solid #fff;
    height: 20px;
    width: 32px;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: .2s ease-in-out;
  }

  input+label:before {
    content: "";
    position: absolute;
    display: block;
    height: 18px;
    width: 18px;
    top: 0;
    left: 0;
    border-radius: 15px;
    transition: .2s ease-in-out;
  }

  input+label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    border-radius: 15px;
    background: #fff;
    transition: .2s ease-in-out;
    height: 18px;
    width: 18px;
  }

  input:checked+label {
    background: deepskyblue;
  }

  input:checked+label:before {
    width: 30px;
    background: deepskyblue;
  }

  input:checked+label:after {
    left: 12px;
  }
}
